#include "serialportmanage.h"

SerialPortManage::SerialPortManage(QObject *parent) : QObject(parent)
{
    m_pSerialPort = new QSerialPort(this);
    initialization();
}

SerialPortManage::~SerialPortManage()
{
    delete m_pSerialPort;
}

void SerialPortManage::initialization()
{
    m_isOpend = false;
}

bool SerialPortManage::getOpendFlag()
{
    return m_isOpend;
}

void SerialPortManage::setOpendFlag(bool flag)
{
    m_isOpend = flag;
}

QSerialPort *SerialPortManage::getSerialPtr()
{
    return m_pSerialPort;
}
